package Model;

import Model.Cages.Cage;
import Model.Animals.*;
import java.util.ArrayList;
import Model.Staff;

/**
 *
 * @author HOANG TRUONG DINH
 */
public class Zoo {

    //ArrayList<Animal> animals;
    ArrayList<Cage> cases;
    ArrayList<Visitor> visitors;

    public Zoo() {
        cases = new ArrayList<Cage>();
        visitors = new ArrayList<Visitor>();
    }

    public void addCase(Cage c) {
        cases.add(c);
    }

    public boolean addAnimalToCase(Cage c, Animal a) {
        return c.addAnimal(a);
    }

    public void addVisitor() {
    }

    public boolean addStaff(Staff f) {
        return true;
    }

    public void removeCase(Cage c) {
        c.removeAllAnimal();
        cases.remove(c);
    }

    public boolean removeAnimalFromCase(Cage c, Animal a) {
        return c.removeAnimal(a);
    }

    public void removeVisitor() {
    }

    public void removeStaff(Staff f) {
    }

    public void upgradeCase(Cage c) {
        c.upgrade();
    }

    public void upgradeAnimal(Cage c, Animal a) {
        c.upgradeAnimal(a);
    }
    
    public void upgradeStaff(Staff f) {
//        f.upgrade();
    }
}
